package com.hdoit.ares.logical.cust.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.cust.dao.IAdviceFeedbackDao;
import com.hdoit.ares.logical.cust.model.AdviceFeedback;
import com.hdoit.ares.logical.cust.service.IAdviceFeedbackService;
import com.hdoit.ares.logical.viewmodel.cust.AdviceFeedbackSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;

@Component
public class AdviceFeedbackServiceImpl extends SuperService<AdviceFeedback> implements IAdviceFeedbackService{

	private	IAdviceFeedbackDao adviceFeedbackDao;

	public IAdviceFeedbackDao getAdviceFeedbackDao() {
		return adviceFeedbackDao;
	}
	
	@Resource
	public void setAdviceFeedbackDao(IAdviceFeedbackDao adviceFeedbackDao) {
		this.adviceFeedbackDao = adviceFeedbackDao;
	}


	@Override
	public List<AdviceFeedback> queryList(
			AdviceFeedbackSearch adviceFeedbackSearch, PagerModel pagerModel) {
		
		return adviceFeedbackDao.queryList(adviceFeedbackSearch, pagerModel);
	}

	@Override
	public List<AdviceFeedback> queryList(
			AdviceFeedbackSearch adviceFeedbackSearch) {
		return adviceFeedbackDao.queryList(adviceFeedbackSearch);
	}

	@Override
	public List<AdviceFeedback> queryListWechat(String adviceId) {
		return adviceFeedbackDao.queryListWechat(adviceId);
	}
}
